FONTNN n/a   IE 4   DOM 1

The FONT object reflects the FONT element.

 
HTML Equivalent
<FONT>
 
Object Model Reference
IE [window.]document.all.elementID
colorNN n/a   IE 4   DOM 1
 Read/Write
 

Sets the font color of all text contained by the FONT element.

 
Example
document.all.myFont.color = "red"
 
Value
Case-insensitive hexadecimal triplet or plain-language color name as a string.
 
Default Browser default.
faceNN n/a   IE 4   DOM 1
 Read/Write
 

A hierarchy of font faces to use for the content surrounded by the current font object. The browser looks for the first font face in the comma-delimited list of font face names until it either finds a match in the client system or runs out of choices, at which point the browser default font face is used. Font face names must match the system font face names exactly.

 
Example
document.all.myFont.face = "Bookman, Times Roman, serif"
 
Value
One or more font face names in a comma-delimited list within a string. You may use real font names or the recognized generic faces: serif | sans-serif | cursive | fantasy | monospace.
 
Default Browser default.
sizeNN n/a   IE 4   DOM 1
 Read/Write
 

The size of the font in the 1-7 browser relative scale.

 
Example
document.all.fontSpec2.size = "+1"
 
Value
Either an integer (as a quoted string) or a quoted relative value consisting of a + or - symbol and an integer value.
 
Default 3